'use strict';

module.exports = app => {
	const mongoose = app.mongoose;
	const Schema = mongoose.Schema;

	const DanmuSchema = new Schema({
		sectionId: { type: String, required: true, unique: true },//电话号码唯一性，作为账号使用
		danmuList: { type: Array },
	});
	return mongoose.model('danmus', DanmuSchema, 'danmu');
};

